{* Smarty *}
{*
 *  This file is part of Urd.
 *
 *  Urd is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *  Urd is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program. See the file "COPYING". If it does not
 *  exist, see <http://www.gnu.org/licenses/>.
 *
 * $LastChangedDate: 2008-07-03 22:46:29 +0200 (Thu, 03 Jul 2008) $
 * $Rev: 1265 $
 * $Author: gavinspearhead $
 * $Id: admin_buttons.tpl 1265 2008-07-03 20:46:29Z gavinspearhead $
 *}
<div>
</div>
<table class="articles" width="95%">
<tr class="head">
<th>{$LN_buttons_name}</th>
<th>{$LN_buttons_url}</th>
<th>{$LN_buttons_image}</th>
<th>{$LN_buttons_actions}</th>
</tr>
{section name=x loop=$buttons}
<tr class="even">

<td >{$buttons[x]->name|escape|truncate:$maxstrlen}</td>
<td {popup text=$buttons[x]->url|escape }>{$buttons[x]->url|escape|truncate:$maxstrlen}</td>
<td><img src="{$IMGDIR}/{$buttons[x]->img|escape}" alt="{$buttons[x]->name|escape}" {popup text=$LN_buttons_clicktest } onclick="javascript:test_search_button('{$buttons[x]->url|escape:"htmlall"}', 'test');"/>
</td>
<td>
<img src="{$IMGDIR}/icon_edit.png" alt="{$LN_buttons_edit}" {popup text=$LN_buttons_edit } class="noborder" onclick="javascript:buttons_action('edit',{$buttons[x]->id});"/>
<img src="{$IMGDIR}/icon_delete.png" alt="{$LN_buttons_delete}" {popup text=$LN_buttons_delete } class="noborder" onclick="javascript:buttons_action_confirm('delete_button',{$buttons[x]->id}, '{$LN_delete} {$buttons[x]->name|escape}?');" />
</td>
</tr>
{/section}
</table>

<input type="hidden" name="challenge" id="challenge_buttons" value="{$challenge}"/>
